﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Silverlight.Testing;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DomusDotNet.Sbm.Client.SL4.ViewModels;
using Caliburn.Micro;
using DomusDotNet.Sbm.Client.SL4.Views;
using SharpTestsEx;
namespace DomusDotNet.Sbm.Client.SL4.Tests
{
    [TestClass]
    public class the_ViewLocator: TestBase
    {


        [TestMethod]
        public void can_resolve_ShellViewModel()
        {
            LocatedViewFor<ShellViewModel>()
                .Should().Be.OfType<ShellView>();
        }

        [TestMethod]
        public void can_resolve_LoginViewModel()
        {
            LocatedViewFor<LoginViewModel>()
                .Should().Be.OfType<LoginView>();
        }

		[TestMethod]
		public void can_resolve_SearchViewModel()
		{
			LocatedViewFor<SearchViewModel>()
				.Should().Be.OfType<SearchView>();
		}

		[TestMethod]
		public void can_resolve_BookViewModel()
		{
			LocatedViewFor<BookViewModel>()
				.Should().Be.OfType<BookView>();
		}

		[TestMethod]
		public void can_resolve_BookBase()
		{
			LocatedViewFor<WCFServices.BookBase>()
				.Should().Be.OfType<BookListItemView>();
		}
    }
}